import request from "@/utils/request";
import { AxiosPromise } from "axios";
import { operateLog, operateLogQuery } from "./types";

export function fetchList(queryParams: operateLog): AxiosPromise<PageResult<operateLogQuery[]>> {
  return request({
    url: '/admin/operateLog/index',
    method: 'get',
    params: queryParams,
  })
}

export function delLog(data: any) {
  return request({
    url: "/admin/operateLog/del",
    method: "delete",
    data,
  });
}
